# Contributor: sick <sick@rape.lol>
# Maintainer: sick <sick@rape.lol>
pkgname=scron
pkgver=0.4
pkgrel=0
pkgdesc="Simple cron daemon"
url="https://git.2f30.org/scron/"
arch="all"
license="MIT"
depends=""
makedepends="$depends"
subpackages="$pkgname-doc"
source="https://dl.2f30.org/releases/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	make || return 1
}

package() {
	cd "$builddir"
	make PREFIX=/usr MANPREFIX=/usr/share/man \
	DESTDIR=$pkgdir install || return 1
}

sha512sums="585c8dd1acab29d37890b62b4c8de2ae6a26bc67c3e95c1c8eaefc6672b6a1b0c3432a93b34d44eb693ba322f4b8f29495e1a825e87b376edb6c5c842da26f1f  scron-0.4.tar.gz"
